package com.lngsyz.ywtb.biz.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lngsyz.ywtb.entity.source1.SSeal;
import com.lngsyz.ywtb.mapper.source1.SSealMapper;

@Service
public class SSealService {
    
	@Autowired
	SSealMapper sSealMapper;
	
	public void inserts(List<SSeal> sSeals) {
		if(sSeals != null && sSeals.size() > 0) {
			sSealMapper.inserts(sSeals);
		}
	}

	/**
	 * 
	 * @return
	 */
    public List<SSeal> findByPermitId(String permitId){
    	Map<String, Object> param = new HashMap<String, Object>();
    	param.put("sPermitId", permitId);
    	List<SSeal> seals = sSealMapper.findByCondition(param);
		return seals;
    }
}
